package com.woniu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 配送详情表
 * @author 凌雨
 * @data 2023/3/14 15:37
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Distribution {

    private String id;//订单编号

    private Date orderTime;//下单使劲按

    private Integer goodsNum;//商品数量

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date deliveryTime;//配送时间

    private Integer state;//配送状态 0:未配送;1:已配送

    private String distributor;//配送员

    private String city;//所在城市

    private String region;//所在区域

    private String warehouseName;//仓库名称

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date startTime;//开始时间

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endTime; //截止时间

    private Long userId; //配送员id

    private Integer depotId; //仓库id

    private String orderId ; //订单id


}
